import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
     state: {
     	Type: uni.getStorageSync('Type')||0,
		conversations:'',
    },
	// conver: {
	//  	conversations:'',
	// },
	mutations: {
		setRoleId(state, data) {
			state.Type = data;
			uni.setStorageSync('Type',data)
		},
		converList(conver, data) {
			conver.conversations = data;
		},
	},
})
export default store